--- a/configure.ac
+++ b/configure.ac
@@ -41,7 +41,7 @@ PKG_CHECK_MODULES([NCURSESW], [ncursesw]
 AS_IF([test "x$has_ncursesw" = "xyes"], [
   AC_SUBST([NCURSESW_CFLAGS])
   AC_SUBST([NCURSESW_LIBS])
-  LIBS="$LIBS $NCURSESW_LIBS"
+  LIBS="$LIBS"
   AC_SUBST([LIBS])
 ])
 
